package main

import (
	"fmt"
	"gopkg.in/src-d/go-git.v4"
	githttp "gopkg.in/src-d/go-git.v4/plumbing/transport/http"
	"os"
)

func main() {
	url := "https://gitee.com/bzsometest/git-test.git"
	auth := &githttp.BasicAuth{"bzsometest", "15228569asdf"}
	_, err := git.PlainClone("file/git-test", false, &git.CloneOptions{
		URL:      url,
		Progress: os.Stdout,
		Auth:     auth,
	})
	if err != nil {
		fmt.Println(err)
	}

}
